﻿using System;

namespace ConsoleApp1
{
    public static class MyExtensionsBase
    {
        public static decimal SetDecimalNull(this Nullable<decimal> val)
        {
            if (val == null)
            {
                return 0m;
            }
            else
            {
                return val.Value;
            }
          
        }
    }
}